#include "file_path.hpp"

#include <exception>
#include "boost/locale.hpp"

using std::invalid_argument;
using boost::locale::translate;

namespace bobs
{
  namespace services
  {
    file_path::file_path(const std::string &path) : m_path(path)
    {
      if (m_path.string() == "")
	throw invalid_argument(translate("Invalid file path"));
    }

    const std::string file_path::string() const
    {
      return m_path.string();
    }
  }
}
